home *** CD-ROM | disk | FTP | other *** search
/ Sun Solutions 1997 April to September / Sun Solutions CD - APR '97 - SEP '97 (704-3778-12 Rev. H)(Sun Microsystems, Inc.)(1997).iso / products / bin / update.applets.pl < prev    next >
Perl Script  |  1996-08-01  |  35KB  |  1,060 lines

  1. #!/usr/lab/bin/perl 
  2. # ------------------------------------------------------------
  3.  
  4. # update.pl, by Jean-Pierre Girard (jpg@corrado.sun.com)
  5. # This allows the user to edit or create the _info file
  6. # necessary for the CDware.
  7. # version 1.0, Feb, 20 1996
  8. # ------------------------------------------------------------
  9.  
  10. # Bugs and other fixes
  11.  
  12. # ------------------------------------------------------------
  13. %Special = (
  14. "internet", "596,200"
  15. ,"Sun", "596,167"
  16. );
  17.  
  18. %GifImage = (
  19. "archive", "software.gif"
  20. ,"business", "software.gif"
  21. , "cad_cae", "software.gif"
  22. , "catalogs", "software.gif"
  23. , "client_server", "software.gif"
  24. , "desktop_apps", "software.gif"
  25. , "doc_mgt", "software.gif"
  26. , "epubs", "software.gif"
  27. , "graphics_imaging", "software.gif"
  28. , "info_mgt", "software.gif"
  29. , "multimedia", "software.gif"
  30. , "networking", "software.gif"
  31. , "security", "software.gif"
  32. , "sw_eng", "software.gif"
  33. , "sys_admin", "software.gif"
  34. , "telco", "software.gif"
  35. , "training", "software.gif"
  36. , "Hardware", "hardware.gif"
  37. , "Services", "services.gif"
  38. , "internet", "internet.gif"
  39. , "Sun", "sunban.gif"
  40. #, "Info", "software.gif"
  41. , "companies", "companies.gif"
  42. );
  43.  
  44. %Categories = (
  45. "archive", "Archiving, Storage Management & Backup Solutions"
  46. ,"business", "Business Solutions"
  47. , "cad_cae", "CAD/CAE"
  48. , "catalogs", "Catalogs"
  49. , "client_server", "Client/Server Solutions"
  50. , "desktop_apps", "Desktop Applications"
  51. , "doc_mgt", "Document Management"
  52. , "epubs", "Electronic Publishing"
  53. , "graphics_imaging", "Graphics and Imaging"
  54. , "info_mgt", "Information Management"
  55. , "internet", "Internet"
  56. , "multimedia", "Multimedia"
  57. , "networking", "Networking"
  58. , "security", "Security"
  59. , "sw_eng", "Software Engineering"
  60. , "sys_admin", "System Administration"
  61. , "telco", "Telecommunications"
  62. , "training", "Training"
  63. , "Hardware", ""
  64. , "Services", ""
  65. , "internet", "Internet"
  66. , "Sun", ""
  67. #, "Info", "Info"
  68. , "companies", ""
  69. );
  70.  
  71. ##############################################################################
  72. # PrintHtml:
  73. ##############################################################################
  74. sub PrintHtml
  75. {
  76.     local($StrHtml1, $Str, $StrHtml2) = @_;
  77.     
  78.     if ($HTML_FORMAT eq "true") {
  79.         print STDOUT $StrHtml1;
  80.     }
  81.  
  82.     print STDOUT $Str;
  83.  
  84.     if ($HTML_FORMAT eq "true") {
  85.         print STDOUT $StrHtml2;
  86.     }
  87. }
  88. ##############################################################################
  89. # CheckLinks:
  90. ##############################################################################
  91. sub CheckLinks
  92. {
  93.     &PrintHtml("<BR>", "\nChecking links1...\n", "<BR>");
  94.     $ListDir = `cd $PRODUCTS_DIR; ls`;
  95.     $ListDir =~ s/gui|CDware|DEV|hotjava|tempjas|temp//g;
  96.     #$ListDir =~ s/\n+/ /g;
  97.     @dirfields = split(/\s+/, $ListDir);
  98.     foreach $Dir (@dirfields) {
  99.         if ($Dir =~ /CDware|DEV/) {
  100.             next;
  101.         }
  102.         &PrintHtml("<DD><DD>",  "\t\tTesting $Dir ...\n", "<BR>");
  103.         $ListFiles = `find "$PRODUCTS_DIR/$Dir" -name "*.html" -print`;
  104.         $ListFiles .= `find "$PRODUCTS_DIR/$Dir" -name "*.htm" -print`;
  105.         #$ListDir =~ s/gui|CDware|DEV|hotjava|tempjas|temp//g;
  106.         @filefields = split(/\s+/, $ListFiles);
  107.         foreach $File (@filefields) {
  108.             if ($File =~ /CDware.(frame|head).html/) {
  109.                 next;
  110.             }
  111.             #&PrintHtml("<DD><DD>",  "\t\tTesting $File ...\n", "<BR>");
  112.             if (open (HTMLFILE, $File)) {
  113.                 while(<HTMLFILE>) {
  114.                     chop;
  115.                     $Line = $_;
  116.                     $LinePrint = $Line;
  117.                     if ($HTML_FORMAT eq "true") {
  118.                         $LinePrint =~ s/</</g;
  119.                         $LinePrint =~ s/>/>/g;
  120.                     }
  121.                     if ($Line =~ /HREF/i) {
  122.                         $Ref = $Line;
  123.                         $Ref =~ s/.*HREF *= *"?([^" >#]*)[" >#].*/\1/i;
  124.                         if ($Ref =~ /HrefButtonArea/) {
  125.                             $Ref =~ s/.*HrefButtonArea,\d+,\d+,\d+,\d+,([^" >]*)/\1/;
  126.                         }
  127.                         #print "\t$Line\n\t->$Ref\n";
  128.                         if ($Ref eq $Line) {
  129.                             &PrintHtml("<B>",  "ERROR: Bug? in update.pl. File=$File\n", "</B><BR>");
  130.                             &PrintHtml("<DD>",  "\t$LinePrint\n\t->$Ref\n", "<BR>");
  131.                         }
  132.                         if ($Ref eq "" && $Line !~ /HREF *= *"?\#/i) {
  133.                             &PrintHtml("<B>",  "ERROR: Bug? in update.pl. File=$File\n", "</B><BR>");
  134.                             &PrintHtml("<DD>",  "\t$LinePrint\n\t->$Ref\n", "<BR>");
  135.                         }
  136.                         if ($Ref !~ /mailto:|ftp:|http:\/\/|req_more_info.pl/i || $Ref =~ /http:\/\/localhost/) {
  137.                         #if ($Ref !~ /mailto:|ftp:|http:\/\/[^l]|req_more_info.pl/i) {
  138.                             #print "->$Ref\n";
  139.                             $ShortDir = $File;
  140.                             $ShortDir =~ s?(.*\/)[^/]*$?\1?;
  141.                             if ($Ref =~ /http:\/\/localhost/i) {
  142.                                 $Ref =~ s?http://localhost:7999/(.*)$?$PRODUCTS_DIR/\1?;
  143.                                 #print "\t\tin http:$ShortDir/$Ref from $File\n";
  144.                                 if ($Ref !~ /cgi-bin/ && ! -s "$ShortDir/$Ref") {
  145.                                     &PrintHtml("<B>", "ERROR: Missing link $Ref from $File. Line = $LinePrint\n", "</B><BR>");
  146.                                 }
  147.                             } elsif ($Ref =~ /file:/i) {
  148.                                 $Ref =~ s?file:///tmp/httpd/.products/(.*)$?$PRODUCTS_DIR/\1?;
  149.                                 #print "\t\tin file: $Ref from $File\n";
  150.                                 unless (-s "$Ref") {
  151.                                     &PrintHtml("<B>", "ERROR: Missing link $Ref from $File. Line = $LinePrint\n", "</B><BR>");
  152.                                 }
  153.                             } else {
  154.                                 #print "\t\tin else: $ShortDir/$Ref from $File\n";
  155.                                 if ($Ref !~ /^#/) {
  156.                                     unless ($Ref !~ /^#/ && -s "$ShortDir/$Ref") {
  157.                                         &PrintHtml("<B>", "ERROR: Missing link $Ref from $File. Line = $LinePrint\n", "</B><BR>");
  158.                                     }
  159.                                 }
  160.                             }
  161.                         }
  162.                         
  163.                     }
  164.                     if ($Line =~ /<IMG/i) {
  165.                         $Ref = $Line;
  166.                         $Ref =~ s/.*IMG.*SRC *= *"?([^" >]*)[" >].*/\1/i;
  167.                         #print "\t$Line\n\t->$Ref\n";
  168.                         if ($Ref eq $Line) {
  169.                             &PrintHtml("<B>",  "ERROR: Bug? in update.pl. File=$File\n", "</B><BR>");
  170.                             &PrintHtml("<DD>",  "\t$LinePrint\n\t->$Ref\n", "<BR>");
  171.                         }
  172.                         if ($Ref eq "") {
  173.                             &PrintHtml("<B>",  "ERROR: Bug? in update.pl. File=$File\n", "</B><BR>");
  174.                             &PrintHtml("<DD>",  "\t$LinePrint\n\t->$Ref\n", "<BR>");
  175.                         }
  176.                         #print "->$Ref\n";
  177.                         $ShortDir = $File;
  178.                         $ShortDir =~ s?(.*\/)[^/]*$?\1?;
  179.                         if ($Ref =~ /http:\/\/localhost/i) {
  180.                             $Ref =~ s?http://localhost:7999/(.*)$?$PRODUCTS_DIR/\1?;
  181.                             #print "\t\tin http:$ShortDir/$Ref from $File\n";
  182.                             if ($Ref !~ /cgi-bin/ && ! -s "$ShortDir/$Ref") {
  183.                                 &PrintHtml("<B>", "ERROR: Missing image $Ref from $File. Line = $LinePrint\n", "</B><BR>");
  184.                             }
  185.                         } elsif ($Ref =~ /file:/i) {
  186.                             $Ref =~ s?file:///tmp/httpd/.products/(.*)$?$PRODUCTS_DIR/\1?;
  187.                             #print "\t\tin file: $Ref from $File\n";
  188.                             unless (-s "$Ref") {
  189.                                 &PrintHtml("<B>", "ERROR: Missing image $Ref from $File. Line = $LinePrint\n", "</B><BR>");
  190.                             }
  191.                         } else {
  192.                             #print "\t\tin else: $ShortDir/$Ref from $File\n";
  193.                             if ($Ref !~ /^#/) {
  194.                                 unless ($Ref !~ /^#/ && -s "$ShortDir/$Ref") {
  195.                                     &PrintHtml("<B>", "ERROR: Missing image $Ref from $File. Line = $LinePrint\n", "</B><BR>");
  196.                                 }
  197.                             }
  198.                         }
  199.                         
  200.                     }
  201.                     #$Line =~ tr/
  202.                 }
  203.                 close(HTMLFILE);
  204.             } else {
  205.                 &PrintHtml("<B>",  "ERROR: $File cannot be open\n", "</B><BR>");
  206.             }
  207.         }
  208.     }
  209. }
  210. ##############################################################################
  211. # CheckFiles:
  212. ##############################################################################
  213. sub CheckFiles
  214. {
  215.     $ListDir = `cd $PRODUCTS_DIR; ls`;
  216.     $ListDir =~ s/gui|CDware|DEV|hotjava|tempjas|temp//g;
  217.     #$ListDir =~ s/\n+/ /g;
  218.     @filefields = split(/\s+/, $ListDir);
  219.     foreach $Dir (@filefields) {
  220.         unless (-s "$PRODUCTS_DIR/$Dir/_info") {
  221.             &PrintHtml("", "WARNING: _info file missing in $Dir\n", "<BR>");
  222.         }
  223.     }
  224.     #print $ListDir;
  225. }
  226.  
  227. ##############################################################################
  228. # InitCompInfo:
  229. ##############################################################################
  230. sub InitCompInfo
  231. {
  232.     $ListDir = `ls $PRODUCTS_DIR/*/_info`;
  233.     #print "ls $PRODUCTS_DIR/*/_info";
  234.  
  235.     @filefields = split(/\s+/, $ListDir);
  236.     #print $filefields;
  237.     foreach $INFOFILENAME (@filefields) {
  238.         $ShortDir = $INFOFILENAME;
  239.         $ShortDir =~ s?.*/([^/]*)/_info$?\1?;
  240.         if (-s $INFOFILENAME && open (INFOFILE, $INFOFILENAME)) {
  241.             if ($REPORT ne "true") {
  242.                 #&PrintHtml("<DD><DD>", "\t\tReading $INFOFILENAME\n", "<BR>");
  243.             }
  244.     
  245.                     while (<INFOFILE>) {
  246.                         $Line = $_;
  247.                 unless ($Line =~ /^[     ]*$/ || $Line =~ /^#/) {
  248.                     last;
  249.                 }
  250.             }
  251.                     ($Companies{$ShortDir}, $Description{$ShortDir}, $Platform{$ShortDir}, $ChosenCat{$ShortDir}, $WebSite{$ShortDir}, $Email{$ShortDir}, $HomePageName{$ShortDir}) = split(/\^/, $Line);
  252.  
  253.             if ($CHECK eq "true") {
  254.                 $_ = $Line;
  255.                 #print "Line=$Line\n";
  256.                 $count = tr/^//;
  257.                 #print "$_: $count\n";
  258.                 if ($count != 7) {
  259.                     &PrintHtml("<B>", "ERROR: Not the correct number of parameters in the first line of $INFOFILENAME\n", "<BR>");
  260.                 }
  261.                 if ($Platform{$ShortDir} =~ /demo|testdrive|install/ && ! -d "$PRODUCTS_DIR/$ShortDir/_install") {
  262.                     &PrintHtml("<B>", "ERROR: Missing _install directory in $ShortDir\n", "<BR>");
  263.                 }
  264.                 if ($HomePageName{$ShortDir} eq "") {
  265.                     &PrintHtml("<B>", "ERROR: Missing Home page name in $ShortDir\n", "<BR>");
  266.                 } else {
  267.                     unless (-s "$PRODUCTS_DIR/$ShortDir/$HomePageName{$ShortDir}") {
  268.                         &PrintHtml("<B>", "ERROR: $HomePageName{$ShortDir} file missing in $ShortDir\n", "<BR>");
  269.                     }
  270.                 }
  271.             }
  272.             $ProdNum = 1;
  273.                     while (<INFOFILE>) {
  274.                 if ($_ =~ /^[     ]*$/ || $_ =~ /^#/) {
  275.                     next;
  276.                 }
  277.                 if ($CHECK eq "true") {
  278.                     unless ($_ =~ /^.*[^     ].*\^$/) {
  279.                         chop($_);
  280.                         &PrintHtml("<B>", "ERROR: Wrong line in $INFOFILENAME: \"$_\"\n", "<BR>");
  281.                     }
  282.                 }
  283.                             $Product=$_;
  284.                             chop($Product);
  285.                             chop($Product);
  286.                             $Products{$ShortDir . $ProdNum} = $Product;
  287.                 #print "jp = $Product\n";
  288.                 $ProdNum++;
  289.                     }
  290.             close(INFOFILE);
  291.             } else {
  292.                     &PrintHtml("", "Can't open $INFOFILENAME\n", "<BR>");
  293.         }
  294.     }
  295.     #foreach $ShortDir (sort keys(%Companies)) {
  296.         #print "$Companies{$ShortDir}, $Description{$ShortDir}, $Platform{$ShortDir}, $ChosenCat{$ShortDir}, $WebSite{$ShortDir}, $Email{$ShortDir}, $HomePageName{$ShortDir}\n";
  297.     #}
  298.     #%RevComp = reverse %Companies;
  299.     #if (@RevComp != @Companies) {
  300.         #print "WARNING: two directory with the same company name->possible problem!\n";
  301.     #}
  302.     %RevProd = reverse %Products;
  303.     if (@RevProd != @Products) {
  304.         &PrintHtml("", "WARNING: two products with the same name->possible problem!\n", "<BR>");
  305.     }
  306.     #print @Products;
  307.     #foreach $ShortDir (sort keys(%Products)) {
  308.         #print "$ShortDir, $Products{$ShortDir}\n";
  309.     #}
  310.     #foreach $ShortDir (sort keys(%RevProd)) {
  311.         #print "$ShortDir, $RevProd{$ShortDir}\n";
  312.     #}
  313.     #foreach $ShortDir (sort keys(%RevComp)) {
  314.         #print "$RevComp{ShortDir}\n";
  315.     #}
  316.     #print %RevComp;
  317. }
  318.  
  319. sub FilteredSort
  320. {
  321.     ($al = $a) =~ tr/A-Z/a-z/;
  322.     $al =~ s/^the //;
  323.     $al =~ s/^\.//;
  324.     $al =~ s/^[     ]*//;
  325.  
  326.     ($bl = $b) =~ tr/A-Z/a-z/;
  327.     $bl =~ s/^the //;
  328.     $bl =~ s/^\.//;
  329.     $bl =~ s/^[     ]*//;
  330.  
  331.     $al cmp $bl;
  332. }
  333. sub FilteredSortComp
  334. {
  335.     $al = $Companies{$a};
  336.     ($al = $a) =~ tr/A-Z/a-z/;
  337.     $al =~ s/^the //;
  338.     $al =~ s/^[     ]*//;
  339.  
  340.     $bl = $Companies{$b};
  341.     ($bl = $b) =~ tr/A-Z/a-z/;
  342.     $bl =~ s/^the //;
  343.     $bl =~ s/^[     ]*//;
  344.  
  345.     #print "$al =? $bl\n";
  346.     $al cmp $bl;
  347. }
  348.  
  349. ##############################################################################
  350. # CreateSoft
  351. ##############################################################################
  352. sub CreateSoft
  353. {
  354.     &PrintHtml("<BR>", "\nCreating Software page...\n", "<BR>");
  355.     $SOFTFILENAME = "$CAT_DIR/Software.html";
  356.     $SOFTHEADFILENAME = "$CAT_DIR/Software.head.html";
  357.     if (open (SOFTFILE, "> $SOFTFILENAME") && open(SOFTHEADFILE, "> $SOFTHEADFILENAME")) {
  358.         $old = select(SOFTHEADFILE);
  359.         $~ = "SOFTWAREHEAD"; 
  360.         write SOFTHEADFILE;   
  361.         close (SOFTHEADFILE); 
  362.  
  363.         select(SOFTFILE);
  364.         $~ = "CATBEGIN";
  365.         write SOFTFILE;
  366.  
  367.         $Letter = "0";
  368.         foreach $Cat (sort FilteredSort keys(%Categories)) {
  369.             unless ($Categories{$Cat} eq "") {
  370.                 $CatAb = $Categories{$Cat};
  371.                 $CatAb =~ tr/a-z/A-Z/;
  372.                 $CatAb =~ s/^THE //;
  373.                 #print STDOUT "$CatAb, $Letter\n";
  374.                 unless ($CatAb =~ /^$Letter/) {
  375.                     $Letter = substr($CatAb, 0, 1);
  376.                     print SOFTFILE "<DT><A NAME=\"$Letter\"><B>$Letter</B></A>";
  377.                     #push (@Letters, $Letter);
  378.                 }
  379.                 print SOFTFILE "<DD><a href=\"http://localhost:7999/.categories/?DEST=$Cat&SIZE=42\"><B>$Categories{$Cat}</B></a><br>\n";
  380.             }
  381.         }
  382.         $~ = "CATEND";
  383.         write SOFTFILE;
  384.  
  385.         close (SOFTFILE);
  386.         select($old);
  387.     }
  388.     &PrintHtml("<DD>", "\tSoftware.html page created.\n", "<BR>");
  389. }
  390.  
  391. ##############################################################################
  392. # CreateCat: 
  393. ##############################################################################
  394. sub CreateCat
  395. {
  396.  
  397.     foreach $catword  ( sort keys(%Categories)) {
  398.         #chop $catword;
  399.         &PrintHtml("<BR>", "\nCreating $catword category page ...\n", "<BR>");
  400.              $CATFILENAME = "$CAT_DIR/$catword.html";
  401.              $CATHEADFILENAME = "$CAT_DIR/$catword.head.html";
  402.         #print STDOUT "Bef open, $CATFILENAME, $CATHEADFILENAME\n";
  403.         if (open (CATFILE, "> $CATFILENAME") && open(CATHEADFILE, "> $CATHEADFILENAME")) {
  404.             $old = select(CATFILE);
  405.  
  406.             $~ = "CATBEGIN";
  407.             write CATFILE;
  408.             $Letter = "0";
  409.             @Letters = ();
  410.             foreach $ShortName (sort FilteredSortComp keys(%Companies)) {
  411.                 $Comp = $Companies{$ShortName};
  412.                 
  413.                 unless ($ChosenCat{$ShortName} =~ /$catword/ 
  414.                     || $catword eq "companies") {
  415.                     next;
  416.                 }
  417.                 $CompAb = $Comp;
  418.                 $CompAb =~ tr/a-z/A-Z/;
  419.                 $CompAb =~ s/^THE //;
  420.                 $CompAb =~ s/^\.//;
  421.                 unless ($CompAb =~ /^$Letter/) {
  422.                     $Letter = substr($CompAb, 0, 1);
  423.                     print CATFILE "<DT><A NAME=\"$Letter\"><B>$Letter</B></A>";
  424.                     push (@Letters, $Letter);
  425.                 }
  426.  
  427.                     #print CATFILE "     <DD><a HREF=file:///tmp/httpd/.products/$ShortName/$HomePageName{$ShortName}><B>$Comp</B></a> $Description{$ShortName}\n";
  428.                     print CATFILE "     <DD><a HREF=file:///tmp/httpd/.products/$ShortName/$FRAMEBASICNAME><B>$Comp</B></a> $Description{$ShortName}\n";
  429.                                 print "<dd><b><i>", $Products{$ShortName . "1"}, "</i></b>\n" ;                             
  430.                                 if ($Products{$ShortName . "2"} ne "") {
  431.                                         print ", <b><i>", $Products{$ShortName . "2"}, "</i></b>\n" ;
  432.                                 }
  433.                                 if ($Products{$ShortName . "3"} ne "") {
  434.                                         print ", <b><i>", $Products{$ShortName . "3"}, "</i></b>\n" ;
  435.                                 }
  436. #
  437. #        This is for testdrive, install, and demo images
  438. #
  439.                 if ($Platform{$ShortName} =~ /demo/ ) {
  440.                 print CATFILE "<img src=\"../CDware/images/demo.gif\">";
  441.                 }
  442.                                 if ($Platform{$ShortName} =~ /testdrive/ ) { 
  443.                                 print CATFILE "<img src=\"../CDware/images/testdrive.gif\">";
  444.                                 } 
  445.                                 if ($Platform{$ShortName} =~ /install/ ) { 
  446.                 print CATFILE "<img src=\"../CDware/images/install.gif\">";
  447.                                 } 
  448.                 print CATFILE "\n";
  449.  
  450.                 }
  451.          
  452.         
  453.             $~ = "CATEND";
  454.             write CATFILE;
  455.             close (CATFILE);
  456.         
  457.             if ($Special{$catword} eq "") {
  458.                 $AppWidth="596"; 
  459.                  $AppHeight="75";
  460.             } else {
  461.                 @tmp=split(/,/,$Special{$catword});
  462.                                 $AppWidth=@tmp[0]; 
  463.                 $AppHeight=@tmp[1];
  464.             } 
  465.                 
  466.                         #&PrintHtml("<DD>", "\ttest $AppWidth $AppHeight $Special{$catword} $catword\n", "<BR>");
  467.  
  468.             select(CATHEADFILE);
  469.             $~ = "CATHEADERBEGIN";
  470.             write CATHEADFILE;
  471.  
  472.         print CATHEADFILE "<param name=img value=\"$DIR_IMAGES/$GifImage{$catword}\">\n";
  473.         if ($catword ne "companies") {
  474.             print CATHEADFILE "<param name=area1 value=\"HrefButtonArea,27,4,69,40,?DEST=companies\">\n";
  475.         } else {
  476.             print CATHEADFILE "<param name=area1 value=\"HrefButtonArea,27,4,69,40,?DEST=Services\">\n";
  477.         }
  478.         print CATHEADFILE "<param name=area2 value=\"HrefButtonArea,27,36,69,40,?DEST=products\">\n";
  479.         if ($catword ne "Hardware") {
  480.             print CATHEADFILE "<param name=area3 value=\"HrefButtonArea,96,0,69,40,?DEST=Hardware\">\n";
  481.         } else {
  482.             print CATHEADFILE "<param name=area3 value=\"HrefButtonArea,96,0,69,40,?DEST=Software\">\n";
  483.         }
  484.         if ($catword ne "Services" && $catword ne "companies") {
  485.             print CATHEADFILE "<param name=area4 value=\"HrefButtonArea,96,38,69,40,?DEST=Services\">\n";
  486.         } else {
  487.             print CATHEADFILE "<param name=area4 value=\"HrefButtonArea,96,38,69,40,?DEST=Software\">\n";
  488.         }
  489.                 if ($catword eq "Sun") {
  490.                         print CATHEADFILE "<param name=area6 value=\"HrefButtonArea,198,85,168,85,?DEST=Sun_Software&SIZE=60\">\n";            
  491.                         print CATHEADFILE "<param name=area7 value=\"HrefButtonArea,401,86,194,85,?DEST=Sun_Hardware&SIZE=60\">\n";                 
  492.         }
  493.         print CATHEADFILE "<param name=area5 value=\"HrefButtonArea,198,0,398,62,../CDware/index.html\">\n";
  494.  
  495.         $~ = "CATHEADERMIDDLE";
  496.         write CATHEADFILE;
  497.  
  498.                 #print CATHEADFILE `cat $Header{$catword}`;
  499.             unless ($Categories{$catword} eq "") {
  500.                     print CATHEADFILE "<CENTER><FONT SIZE=24>$Categories{$catword}</FONT></CENTER>";
  501.             }
  502.     
  503.             #@Letters = ("A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z");
  504.             if (@Letters > 1) {
  505.                 print CATHEADFILE "<B>Go to:  ";
  506.                 foreach $letter (@Letters) {
  507.                     print CATHEADFILE "<A HREF=\"?DEST=$catword&L=$letter" . ($Categories{$catword} eq ""? "" : "&SIZE=42") . "\">$letter</A>\n";
  508.                 }
  509.             }
  510.             $~ = "CATHEADEREND";
  511.             write CATHEADFILE;
  512.             close (CATHEADFILE);
  513.      
  514.             &PrintHtml("<DD>", "\t$catword category page created.\n", "<BR>");
  515.  
  516.             select($old);
  517.         } else {
  518.             die "\nERROR: Cannot write $CATFILENAME or $CATHEADFILENAME!\nTry to be superuser!\n\n";
  519.         }
  520.     }
  521. }
  522.  
  523. ##############################################################################
  524. # CreateReport:
  525. ##############################################################################
  526. sub CreateReport
  527. {
  528.     $TotalSize = 0;
  529.     foreach $ShortName (sort FilteredSortComp keys(%Companies)) {
  530.         #$ShortName = $RevComp{$Comp};    
  531.         $Comp = $Companies{$ShortName};
  532.         &PrintHtml("<B>", "$Comp:\n", "</B><BR>");
  533.         &PrintHtml("<DD>", "\tProduct1: " . $Products{$ShortName . "1"} . "\n", "<BR>");
  534.         if ($Products{$ShortName . "2"} ne "") {
  535.             &PrintHtml("<DD>", "\tProduct2: " . $Products{$ShortName . "2"} . "\n", "<BR>");
  536.         }
  537.         if ($Products{$ShortName . "3"} ne "") {
  538.             &PrintHtml("<DD>", "\tProduct3: " . $Products{$ShortName . "3"} . "\n", "<BR>");
  539.         }
  540.         $Size = `du -ks $PRODUCTS_DIR/$ShortName`;
  541.         chop $Size;
  542.         $Size =~ s/(\d*).*/\1/;
  543.         &PrintHtml("<DD>", "\tTotal size: $Size Kb\n", "<BR>");
  544.         $TotalSize += $Size;
  545.         if ( $Platform{$ShortName} =~ /demo|testdrive|install/) {
  546.             &PrintHtml("<DD>", "\t", "");
  547.             if ($Platform{$ShortName} =~ /demo/) {
  548.                 &PrintHtml("", "Slide-show, ", "");
  549.             }
  550.             if ($Platform{$ShortName} =~ /testdrive/) {
  551.                 &PrintHtml("", "Demo version, ", "");
  552.             }
  553.             if ($Platform{$ShortName} =~ /install/) {
  554.                 &PrintHtml("", "Unlockable version, ", "");
  555.             }
  556.             &PrintHtml("", "\n", "<BR>");
  557.         }
  558.     }
  559.     &PrintHtml("<BR><BR>", "\n\nTotal size for all companies: $TotalSize Kb\n", "<BR>");
  560.     $Size = `du -ks $PRODUCTS_DIR/$ShortName`;
  561.     chop $Size;
  562.     $Size =~ s/(\d*).*/\1/;
  563.     &PrintHtml("", "Total size for .products: $Size Kb\n", "<BR>");
  564. }
  565.  
  566. ##############################################################################
  567. # CreateApplet:
  568. ##############################################################################
  569. sub CreateApplet
  570. {
  571.     &PrintHtml("", "\nBuilding Control bar applets ...\n", "<BR>");
  572.     $TmpFile = "/tmp/tmpupdateapplet";
  573.     foreach $Comp (sort keys(%Companies)) {
  574.         $FRAMEFILENAME = "$PRODUCTS_DIR/$Comp/$FRAMEBASICNAME";
  575.         if (open (FRAMEFILE, "> $FRAMEFILENAME")) {
  576.             print FRAMEFILE "<html> <head>\n<title>CDware May 1996: $Companies{$Comp}</title>\n</head>\n<FRAMESET ROWS=\"50,*\">\n<FRAME SCROLLING=\"no\" TARGET=\"_top\" NAME=\"menu\" NORESIZE SRC=\"CDware.head.html\">\n<FRAME SCROLLING=\"yes\" NAME=\"content\" NORESIZE MARGINHEIGHT=4 SRC=\"$HomePageName{$Comp}\">\n</BODY> </NOFRAME> </FRAMESET> </HTML>\n";
  577.             close(FRAMEFILE);
  578.         } else {
  579.             &PrintHtml("", "ERROR: Couldn't write $FRAMEFILENAME\n", "<BR>");
  580.         }
  581.  
  582.         $HEADFILENAME = "$PRODUCTS_DIR/$Comp/$HEADBASICNAME";
  583.         if (open (HEADFILE, "> $HEADFILENAME")) {
  584.             print HEADFILE "<html> <head>\n<title>CDware May 1996</title>\n</head>\n<BODY>\n<CENTER>\n<applet code=ImageMap.class width=596 height=36>\n<param name=highlight value=\"brighter60\">";
  585.             
  586.             $TestGif = 0;
  587.             if ($Platform{$Comp} =~ /demo/) {
  588.                 $TestGif ++;
  589.             }
  590.             if ($Platform{$Comp} =~ /testdrive/) {
  591.                 $TestGif += 2;
  592.             }
  593.             if ($Platform{$Comp} =~ /install/) {
  594.                 $TestGif += 4;
  595.             }
  596.             @BarFileNames = ("none", "rd", "td", "tdrd", "ts", "tsrd", "tdts", "samplebar");
  597.             print HEADFILE "<param name=img value=\"$PRODUCTS_DIR/CDware/images/$BarFileNames[$TestGif].gif\">\n";
  598.  
  599.             print HEADFILE "<param name=area1 value=\"HrefButtonArea,0,0,80,35,file:///tmp/httpd/.products/CDware/index.html\" >\n";
  600.             print HEADFILE "<param name=area2 value=\"HrefButtonArea,81,0,84,35,http://localhost:7999/.categories/?DEST=companies\" >\n";
  601.             print HEADFILE "<param name=area3 value=\"HrefButtonArea,164,0,83,35,file:///tmp/httpd/.products/CDware/docs/info/features.html\" >\n";
  602.             print HEADFILE "<param name=area4 value=\"HrefButtonArea,267,0,85,35,http://localhost:7999/cgi-bin/req_more_info.pl?$Comp\" >\n";
  603.  
  604.             $Area = 5;
  605.             if ($Platform{$Comp} =~ /demo/) {
  606.                 print HEADFILE "<param name=area$Area value=\"HrefButtonArea,350,0,83,35,http://localhost:7999/$Comp/_install/install_show.sh\">\n";
  607.                 $Area ++;
  608.             }
  609.             if ($Platform{$Comp} =~ /testdrive/) {
  610.                 print HEADFILE "<param name=area$Area value=\"HrefButtonArea,434,0,81,35,http://localhost:7999/$Comp/_install/run.sh\">\n";
  611.                 $Area ++;
  612.             }
  613.             if ($Platform{$Comp} =~ /install/) {
  614.                 print HEADFILE "<param name=area$Area value=\"HrefButtonArea,515,0,83,35,http://localhost:7999/$Comp/_install/install.sh\">\n";
  615.             }
  616.             
  617.             print HEADFILE "</applet> </CENTER> </BODY> </HTML>\n";
  618.  
  619.  
  620.             close(HEADFILE);
  621.         } else {
  622.             &PrintHtml("", "ERROR: Couldn't write $HEADFILENAME\n", "<BR>");
  623.         }
  624.  
  625.              #$HOMEFILENAME = "../$Comp/" . $HomePageName{$ShortDir};
  626.         #if (open (HOMEFILE, "$HOMEFILENAME")) {
  627.             #open (TMPFILE, "$TmpFile");
  628.             #while (<TMPFILE>) {
  629.                 #$Line = $_;
  630.                 #if ($Line =~ /^<applet class=cdbar/i) {
  631.                     #while (! <HOMEFILE> =~ /^<\/applet>/i) {
  632.                     #}
  633.                     #$TestGif = 0;
  634.                     #if ($Platform{$Comp} =~ /demo/) {
  635.                         #$TestGif ++;
  636.                     #}
  637.                     #if ($Platform{$Comp} =~ /testdrive/) {
  638.                         #$TestGif ++;
  639.                     #}
  640.                     #if ($Platform{$Comp} =~ /install/) {
  641.                         #$TestGif ++;
  642.                     #}
  643.                     #print TMPFILE "<app class=CDbar img=\"../CDware/images/none.gif";
  644.                     #print TMPFILE "highlight=brighter60";
  645. ##            print "area1=HrefButtonArea,0,0,80,35,file:///tmp/httpd/.products/CDware/index.html" >> applet
  646. ##            print "area2=HrefButtonArea,81,0,84,35,file:///tmp/httpd/.products/.categories/companies.html" >> applet
  647. ##            print "area3=HrefButtonArea,164,0,83,35,file:///tmp/httpd/.products/CDware/docs/info/features.html" >> applet
  648. ##            print "area4=HrefButtonArea,267,0,85,35,file:///tmp/httpd/.products/DEV/disabled.html" >> applet
  649. ##            print ">" >> applet
  650. ##                        breaksw    
  651. ## 
  652.                     #next;
  653.                 #}
  654.                 #print TMPFILE $Line;
  655.             #}
  656.         #}
  657.         #rename($TmpFile, $HOMEFILENAME);
  658.     }
  659.     &PrintHtml("", "\tControl bar applets built...\n", "<BR>");
  660. }
  661. ###############################################################################
  662. ## CreateNames
  663. ###############################################################################
  664. sub CreateNames
  665. {
  666. open (REALNAMES, "> $PRODUCTS_DIR/.bin/real_names.txt");
  667.    write REALNAMES;
  668.     foreach $comp (keys(%Companies)) {
  669.         print REALNAMES "$comp\t$Companies{$comp}\n";
  670.     }
  671. # this is for directories without _info files
  672.    print REALNAMES "SunProducts\tSun Products";
  673. close(REALNAMES);
  674. }
  675.  
  676. ###############################################################################
  677. ## CreateProduct
  678. ###############################################################################
  679. sub CreateProduct
  680. {
  681.     &PrintHtml("<BR>", "\nCreating Products page...\n", "<BR>");
  682.  
  683.          $PRODFILENAME = "$CAT_DIR/products.html";
  684.          $PRODHEADFILENAME = "$CAT_DIR/products.head.html";
  685.     if (open (PRODFILE, "> $PRODFILENAME") && open(PRODHEADFILE, "> $PRODHEADFILENAME")) {
  686.         $old = select(PRODFILE);
  687.  
  688.         $~ = "CATBEGIN";
  689.         write PRODFILE;
  690.         $Letter = "0";
  691.         @Letters = ();
  692.         foreach $Prod (sort FilteredSort keys(%RevProd)) {
  693.             $ShortName = substr($RevProd{$Prod}, 0, length($RevProd{$Prod}) - 1);    
  694.             
  695.             #print STDOUT "        Prod=$Prod, ShortName=$ShortName.\n";
  696.             $ProdAb = $Prod;
  697.             $ProdAb =~ tr/a-z/A-Z/;
  698.             $ProdAb =~ s/^THE //;
  699.             $ProdAb =~ s/^[     ]*//;
  700.             unless ($ProdAb =~ /^$Letter/) {
  701.                 $Letter = substr($ProdAb, 0, 1);
  702.                 print PRODFILE "<DT><A NAME=\"$Letter\"><B>$Letter</B></A>";
  703.                 push (@Letters, $Letter);
  704.             }
  705.  
  706.                 #print PRODFILE "<DD><A HREF=file:///tmp/httpd/.products/$ShortName/$HomePageName{$ShortName}><B>$Prod</B></A> <I>from</I> <B>$Companies{$ShortName}</B>\n";
  707.                 print PRODFILE "<DD><A HREF=file:///tmp/httpd/.products/$ShortName/$FRAMEBASICNAME><B>$Prod</B></A> <I>from</I> <B>$Companies{$ShortName}</B>";
  708. #
  709. #     this is for testdrive, install, demo icons
  710. #
  711.                                 if ($Platform{$ShortName} =~ /demo/ ) {
  712.                                 print PRODFILE "<img src=\"../CDware/images/demo.gif\">";
  713.                                 }
  714.                                 if ($Platform{$ShortName} =~ /testdrive/ ) {
  715.                                 print PRODFILE "<img src=\"../CDware/images/testdrive.gif\">";
  716.                                 }
  717.                                 if ($Platform{$ShortName} =~ /install/ ) {
  718.                                 print PRODFILE "<img src=\"../CDware/images/install.gif\">";
  719.                                 }
  720.                                 print PRODFILE "\n";
  721.  
  722.             }
  723.      
  724.         $~ = "CATEND";
  725.         write PRODFILE;
  726.         close (PRODFILE);
  727.  
  728.         select(PRODHEADFILE);
  729.         $~ = "CATHEADERBEGIN";
  730.         write PRODHEADFILE;
  731.  
  732.         print PRODHEADFILE "<param name=img value=\"$DIR_IMAGES/products.gif\">\n";
  733.         print PRODHEADFILE "<param name=area1 value=\"HrefButtonArea,27,4,69,40,?DEST=companies\">\n";
  734.         print PRODHEADFILE "<param name=area2 value=\"HrefButtonArea,27,36,69,90,?DEST=Services\">\n";
  735.         print PRODHEADFILE "<param name=area3 value=\"HrefButtonArea,96,0,69,40,?DEST=Hardware\">\n";
  736.         print PRODHEADFILE "<param name=area4 value=\"HrefButtonArea,96,38,69,74,?DEST=Software\">\n";
  737.         print PRODHEADFILE "<param name=area5 value=\"HrefButtonArea,200,0,395,74,../CDware/index.html\">\n";
  738.  
  739.         print PRODHEADFILE "</applet><br></td><tr><td><center>";
  740.         #$~ = "CATHEADERMIDDLE";
  741.         #write PRODHEADFILE;
  742.  
  743.             #print PRODHEADFILE `cat $Header{$catword}`;
  744.         #unless ($Categories{$catword} eq "") {
  745.                 #print PRODHEADFILE "<H1>$Categories{$catword}</H1>";
  746.         #}
  747.  
  748.         #@Letters = ("A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z");
  749.         print PRODHEADFILE "<B><FONT size=\"4\"> Go to:\n";
  750.         foreach $letter (@Letters) {
  751. # below changed by Marc
  752.             #print PRODHEADFILE "<A HREF=\"?DEST=$catword&L=$letter\">$letter</A>\n";
  753.             print PRODHEADFILE "<A HREF=\"?DEST=products&L=$letter\">$letter</A>\n";
  754.         }
  755.         $~ = "CATHEADEREND";
  756.         write PRODHEADFILE;
  757.         close (PRODHEADFILE);
  758.  
  759.         &PrintHtml("<DD>", "\tproducts.html page created.\n", "<BR>");
  760.  
  761.         select($old);
  762.     }
  763. }
  764. ##############################################################################
  765. # MAIN PART: Decode the parameters and calls the correct subfunctions
  766. ##############################################################################
  767. #$arg0=$0
  768. #$DIR=$arg0:h
  769. #$ProgName=$arg0:t
  770.  
  771. #if ("X$DIR" == "X$ProgName") {
  772.     #$DIR='.'
  773. #}
  774.  
  775. #if (-e "./$ProgName") {
  776.     #$DIR=$cwd
  777. #}
  778.  
  779. #cd  $DIR
  780. #print `pwd`;
  781.  
  782. #
  783. # Create the category pages seen in the categories.txt file
  784. #
  785.  
  786. #foreach $en (sort keys %ENV) {
  787.     #print "$en = $ENV{$en}\n";
  788. #}
  789.  
  790.  
  791.     $CATS = "false";
  792.     $APPLETS = "false";
  793.     $COMP = "false";
  794.     $CHECK = "false";
  795.     $REPORT = "false";
  796.     $HTML_FORMAT = "false";
  797.     $PROD = "false";
  798.     $SOFT = "false";
  799.     $PLATFORM = "sparc";
  800.  
  801.     $DIR_IMAGES = "../CDware/images/";
  802.     $PRODUCTS_DIR = "../";
  803.  
  804.     # parse command line arguements
  805.  
  806.     #print "Arg=@ARGV.\n";
  807.     @ARGREPORT = @ARGV;
  808.     if (@ARGV == 0) {
  809.         @ARGV=("-?");
  810.     }
  811.  
  812.         while ($ARGV[0] =~ /^-/) {
  813.             $_ = shift;
  814.             #print "Arg=$_.\n";
  815.             if (/^-cats$/) {
  816.                 $CATS = "true";
  817.             } elsif (/^-applets/) {
  818.                 $APPLETS = "true";
  819.             } elsif (/^-comp/) {
  820.                 $COMP = "true";
  821.             } elsif (/^-checkall/) {
  822.                 $CHECK = "true";
  823.                 $CHECKLINKS = "true";
  824.             } elsif (/^-checklinks/) {
  825.                 $CHECKLINKS = "true";
  826.             } elsif (/^-check/) {
  827.                 $CHECK = "true";
  828.             } elsif (/^-soft/) {
  829.                 $SOFT = "true";
  830.             } elsif (/^-report/) {
  831.                 $REPORT = "true";
  832.             } elsif (/^-html/) {
  833.                 $HTML_FORMAT = "true";
  834.                         } elsif (/^-names/) {
  835.                                 $NAMES = "true";
  836.             } elsif (/^-dir/) {
  837.                 $PRODUCTS_DIR = ($1 ? $1 : shift);
  838.                 unless (-s $PRODUCTS_DIR) {
  839.                     die "ERROR: $PRODUCTS_DIR is not a directory\n";
  840.                 }
  841.             } elsif (/^-prod/) {
  842.                 $PROD = "true";
  843.             } elsif (/^-all/) {
  844.                 $PROD = "true" ;
  845.                 $COMP = "true";
  846.                 $SOFT = "true";
  847.                 $APPLETS = "true";
  848.                 $CATS = "true";
  849.                 $NAMES = "true";
  850.             } elsif (/^-x86/) {
  851.                 $PLATFORM = x86;
  852.                 $SRC_DIR = "../../../x86.image";
  853.             } elsif (/^-[?Hh]/) {
  854.                 die "Usage: update.pl [ -cats | -applets | -soft | -prod | -all | -dir dirname | -x86  | -report | -html | -names | -check]\n\tall: = -cats -prod -applets\n\tapplets: creates an applet in the customer home page.\n\tcats: creates the category and company pages.\n\tcheck: check the _info file, and other things for errors.\n\tdir: gives the directory where the companies are located.\n\thtml: when -report is selected, creates an output in HTML format.\n\tnames: create list of company names keyed on directory name.\n\tprod: creates the product page.\n\treport: creates a report for all companies.\n\tsoft: creates the Software pages\n\tx86: for future usage.\n";
  855.             } else {
  856.                 die "Unrecognized switch: $_ (try -?)\n";
  857.             }
  858.         }
  859.  
  860. &PrintHtml("<HTML> <HEAD> <title>Catalyst CDware - status on " . `date` . "</title> </HEAD> <BODY bgcolor=\"#DDDDDD\"><H1>", "Catalyst CDware - status on " . `date` . "\n", "</H1>");
  861.  
  862.  
  863. # check if root user
  864. if ( $ENV{"USER"} ne "root" ) {
  865.         &PrintHtml("", "WARNING: This program should be run as root user.\n", "<BR>");
  866.     }
  867.  
  868.  
  869.     if ($REPORT ne "true") {
  870.         $HostName = `hostname`;
  871.         chop $HostName;
  872.         &PrintHtml("", "\nUpdating CDware on $HostName:\n\n", "<BR>");
  873.     if (open (REPORTFILE, ">> $PRODUCTS_DIR/.update.txt")) {
  874.         $Date = `date`;
  875.         chop $Date;
  876.         print REPORTFILE "update by " . $ENV{"USER"} . " on $Date from $HostName\n\tparams: ";
  877.         while (@ARGREPORT) {
  878.             print REPORTFILE "$ARGREPORT[0], ";
  879.             shift @ARGREPORT;
  880.         }
  881.         print REPORTFILE "\n\n";
  882.         close (REPORTFILE);
  883.     } else {
  884.         &PrintHtml("", "WARNING: Cannot open $PRODUCTS_DIR/.update.txt\n", "<BR>");
  885.     }
  886. }
  887.  
  888. &InitCompInfo();
  889.  
  890. $CAT_DIR = "$PRODUCTS_DIR/.categories";
  891. $FRAMEBASICNAME = "CDware.frame.html";
  892. $HEADBASICNAME = "CDware.head.html";
  893. #print $CAT_DIR;
  894. if ( ! -d $CAT_DIR ) {
  895.     mkdir($CAT_DIR, 0777);
  896. }
  897.  
  898. if ( $CHECK eq "true" ) {
  899.     &CheckFiles();
  900. }
  901. if ( $NAMES eq "true" ) {
  902.         &CreateNames();  
  903. }
  904.  
  905.  
  906. if ( $CHECKLINKS eq "true" ) {
  907.     &CheckLinks();
  908. }
  909.  
  910. if ( $CATS eq "true" ) {
  911.     &CreateCat();
  912. }
  913.  
  914. if ( $SOFT eq "true" ) {
  915.     &CreateSoft();
  916. }
  917.  
  918. #
  919. # Get all CDware menu bar components and put in file 
  920. # for building of front page applet 
  921. #
  922. if ( $APPLETS eq "true" ) {
  923.     &CreateApplet();
  924. }
  925.  
  926. if ( $PROD eq "true" ) {
  927.     &CreateProduct();
  928. }
  929.  
  930. if ( $REPORT eq "true" ) {
  931.     &CreateReport();
  932. }
  933.  
  934. #
  935. # Compile list of companies, place in 'companies' file
  936. #
  937. #if ( $COMP eq "true" ) {
  938.     #&CreateComp();
  939. #}
  940.  
  941. #
  942. # Compile list of products, place in 'products' file
  943. #
  944.  
  945. #print "\n\n\nPress <RETURN> to close the window and test your submission..\n.";
  946. #read answer;
  947.  
  948. ################################################################################
  949. # Define FORMATS (no more code)
  950. ################################################################################
  951. format CATHEADERBEGIN =
  952. <html>
  953. <body  BGCOLOR="#8c8cde" link=#33ff00 vlink=#33ff00 >
  954. <BASE TARGET="_top" HREF="http://localhost:7999/.categories/">
  955. <center>
  956. <form method="get"  ACTION="http://localhost:7999/cgi-bin/brandnewwais.pl/wais_CDware">
  957. <table border = 3><td>
  958. <applet code=ImageMap.class width=@*
  959. $AppWidth
  960.  height=@*
  961. $AppHeight
  962. >
  963. <param name=highlight value="brighter60">
  964. .
  965.  
  966. format CATHEADERMIDDLE =
  967. </applet><br></td><tr><td><center>
  968. <B><FONT size="4">
  969. #<B>Go to:  </b>
  970. .
  971.  
  972. format CATHEADEREND =
  973. <br> Search: <input type="text" name="isindex" size="12" >
  974. </font>
  975. </td><tr></table>
  976. </form>
  977. </center>
  978. </body>
  979. </html>
  980. .
  981.  
  982. format CATBEGIN =
  983. <HTML>
  984.         <!-- header section-->
  985. <HEAD>
  986. <title>Catalyst CDware - SPARC Edition - January through April</title>
  987. </HEAD>
  988.         <!-- document body-->
  989. <BODY bgcolor="#DDDDDD">
  990. <BASE TARGET="_top">
  991. <DL>
  992. #<hr>
  993. #<p>
  994. .
  995.  
  996. format CATEND =
  997. </B></B><DT>
  998. <hr>
  999. </BODY>
  1000. </HTML>
  1001. .
  1002.  
  1003. format SOFTWAREHEAD =
  1004. <HTML>
  1005.         <!-- header section-->
  1006. <HEAD>
  1007. <TITLE>Catalyst CDware - Software Categories</TITLE>
  1008. </HEAD>
  1009.         <!-- document body-->
  1010. <BODY BGCOLOR="8c8cde" link=#33ff00 vlink=#33ff00>
  1011. <CENTER>
  1012. <BASE TARGET="_top" HREF="http://localhost:7999/.categories/">
  1013. <form method="get"  ACTION="http://localhost:7999/cgi-bin/brandnewwais.pl/wais_CDware">
  1014. <table border = 3><td>
  1015. <applet code=ImageMap.class width=596 height=75>
  1016. <param name=highlight value="brighter60">
  1017. <param name=img value="../CDware/images/software.gif">
  1018. <param name=area1 value="HrefButtonArea,27,4,69,40,../.categories/?DEST=companies">
  1019. <param name=area2 value="HrefButtonArea,27,36,69,90,../.categories/?DEST=products">
  1020. <param name=area3 value="HrefButtonArea,96,0,69,40,../.categories/?DEST=Hardware">
  1021. <param name=area4 value="HrefButtonArea,96,38,69,74,../.categories/?DEST=Services">
  1022. <param name=area5 value="HrefButtonArea,200,0,395,74,../CDware/index.html">
  1023. </applet>
  1024. </TD><TR><TD>
  1025. <CENTER>
  1026. <FONT size="4">
  1027. <br>Search: <input type="text" name="isindex" size="12" >
  1028. </font>
  1029. </CENTER>
  1030. </td><tr></table>
  1031. </CENTER>
  1032. </form>
  1033. </BODY>
  1034. </HTML>
  1035. .
  1036. ##############################################################################
  1037. format FRAMEHEADER =
  1038. Content-type: text/html
  1039.  
  1040.  
  1041.  
  1042. <html>
  1043. <head>
  1044. <title>CDware May 1996</title>
  1045. </head>
  1046. <FRAMESET ROWS="20,80">
  1047. #$size
  1048. .
  1049. ##############################################################################
  1050. format FRAMEFOOTER =
  1051. <BODY BACKGROUND="icons/bkgrnds/homebg.gif" body bgcolor=black text=#ffffff link=#dddddd alink=#ffff00 vlink=#bbbbbb>
  1052.  
  1053. <FONT SIZE=-1>Copyright \0511995 <B><A
  1054.  
  1055. </BODY>
  1056. </NOFRAME>
  1057. </FRAMESET>
  1058. </HTML>
  1059. .
  1060.